package com.wtwd.device.controller;


import com.wtwd.device.model.vo.RespEntity;
import com.wtwd.device.service.CustomerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mjy
 * @date 2021/08/05
 * @description
 */
@RestController
@RequestMapping("/select")
public class SelectController {


    private static final Logger logger = LoggerFactory.getLogger(SelectController.class);

    @Autowired
    private CustomerService customerService;


    @GetMapping("/getAllCustomerByLikeName/{customerName}")
    public RespEntity getAllCustomerByLikeName(@PathVariable("customerName") String name) {
        logger.info("deleteSysUser param " + name);
        return customerService.getAllCustomerByLikeName(name);
    }



}
